package JavaTest02.java;

import java.util.Scanner;

public class GRZL {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);

            System.out.print("请输入姓名：");
            String name = scanner.nextLine();

            System.out.print("请输入学号：");
            String studentId = scanner.nextLine();

            System.out.print("请输入年龄：");
            int age = scanner.nextInt();

            System.out.print("请输入金额：");
            double amount = scanner.nextDouble();

            System.out.print("请输入电话：");
            String phoneNumber = scanner.next();

            System.out.print("是否已婚（是/否）：");
            boolean isMarried = scanner.nextBoolean();

            System.out.println("个人信息如下：");
            System.out.println("姓名：" + name);
            System.out.println("学号：" + studentId);
            System.out.println("年龄：" + age);
            System.out.println("金额：" + amount);
            System.out.println("电话：" + phoneNumber);
            System.out.println("婚否：" + isMarried+ "是,否");
        }
    }



